package com.ssy.lingxi.platform.manage.api.model.dto.sensitive;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 敏感词请求类
 * @author yzc
 * @version 2.0.0
 * @date 2020/11/11
 */
@Data
public class SensitiveWordDTO {

    /**
     * 主键id
     */
    @ApiModelProperty("主键id")
    @NotNull(message = "主键id不能为空", groups = {Update.class})
    private Long id;

    /**
     * 敏感词名称
     */
    @ApiModelProperty("敏感词名称")
    @NotEmpty(message = "敏感词名称不能为空", groups = {Add.class, Update.class})
    private String name;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    private String remark;

    public interface Add {
    }

    public interface Update {
    }

}
